<?php
namespace Hive\Leave;
/**
 * Leave Workflow Object
 *
 *
 * @author Yassir OUBAHA
 * @package Hive\Leave
 * @license
 *
 * @property string	$Type			Workflow type (11)
 * @property string	$level			Workflow level (5)
 * @property string	$role			Workflow role  (11)

 */
class Workflow extends \Fox\Object\Versioned
{

}
\Fox\Dao::infos(Workflow::className(),new \Fox\Object\Info('leave_workflows', \Fox\Databases::DB_APP)
);

\Fox\Object\Links::add(\Fox\Dao::link(Workflow\Type::className(), Workflow\Type::LINK_TYPE)
		->to(Workflow::className(), Workflow::LINK_WORKFLOW_TYPE)
		->on('type')
		->versionFrom());

/*\Fox\Object\Links::add(\Fox\Dao::link(Employee\Role::className(), Employee\Role::LINK_ROLE)
		->to(Workflow::className(), Workflow::LINK_WORKFLOW_ROLE)
		->on('role')
		->versionFrom());